;(function () {
    var WxContext = function () {
        this.name = 'WXUI';
        this.version = '1.0.0.RELEASE';
        this.baseUrl="./ui/";
        this.viewPath="";
        this.viewData={};
    }

    WxContext.prototype.setBaseUrl=function(baseUrl){
        this.baseUrl=baseUrl;
    }
    WxContext.prototype.getBaseUrl=function(){
        return this.baseUrl;
    }
    WxContext.prototype.setViewPath = function (viewPath) {
        this.viewPath = viewPath;
    }
    WxContext.prototype.getViewPath=function(){
        return this.viewPath;
    }
    WxContext.prototype.setViewData=function(viewData){
        this.viewData=JSON.parse(viewData);
    }
    WxContext.prototype.getViewData=function(){
        return this.viewData;
    }

    window.wxContext = new WxContext();
})()
